package com.itheima.practice.demo06;

public class Demo {
    public static void main(String[] args) {
        Desk desk = new Desk();
        Cooker c = new Cooker(desk);
        Foodie f = new Foodie(desk);
        c.setName("生产者");
        f.setName("消费者");
        c.start();
        f.start();
    }
}
